<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">会员卡列表</a></li>
        <li><a href="{:U('add')}">新增卡</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('lists')}">
        标题：
        <input type="text" name="title" style="width: 120px;" value="{$formget.title}" placeholder="">
        类型：
        <select style="" id="category_id" name="inf_type">
            <option value="0">全部</option>
            {$options}
        </select>
        <input type="submit" style="margin-left: 5px;" class="btn btn-primary" value="搜索"/>
    </form>


    <!--<a data-toggle="modal" data-target="#myModal"  class="btn btn-primary" >添加</a>-->

    <table style="margin-top: 10px;word-break:break-all;" class="table table-hover table-bordered table-list"
           id="menus-table">
        <thead>
        <tr>
            <th>序号</th>
            <th>用户手机号</th>
            <th>打卡类型</th>
            <th>打卡来源</th>
            <th>打卡时间</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo" key="k">
            <tr>
                <td>{$k}</td>
                <td>{$vo.phone}</td>
                <td>
                    <if condition="$vo['tag'] eq 'swim'">
                        游泳
                        <else/>
                        洗澡
                    </if>
                </td>
                <td>
                    <if condition="$vo['type'] eq 'admin'">
                        后台
                        <else/>
                        小程序
                    </if>
                </td>
                <td>
                    {$vo.create_time}

                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>

<script src="__PUBLIC__/js/common.js"></script>
<script>
    $(".hidden").hide();
    $('.add_ext').click(function () {
        var name = $(this).attr("name");
        var id = $(this).attr("tid");
        var sort = $(this).attr("sort");

        $(".id").val(id);
        // $("#id").val(id);
        $("#name").val(name);
        $("#sort").val (sort);
    });

</script>
</body>
</html>